<template>
    <div class="rating">
        <div class="top">
            <div class="left">
                <p>{{ seller.score }}</p>
                <p>综合评分</p>
                <p>高于周边商家{{ seller.rankRate }}%</p>
            </div>
            <div class="right">
                <p>
                    服务态度
                    <img src="../../../img/star36_on@2x.png" alt="">
                    <img src="../../../img/star36_on@2x.png" alt="">
                    <img src="../../../img/star36_on@2x.png" alt="">
                    <img src="../../../img/star36_on@2x.png" alt="">
                    <img src="../../../img/star36_off@2x.png" alt="">
                    <span style="color:rgb(255, 153, 0);margin-left:3.2vw ;"> {{ seller.score  }}</span>
                  
                </p>
                <p>
                    服务态度
                    <img src="../../../img/star36_on@2x.png" alt="">
                    <img src="../../../img/star36_on@2x.png" alt="">
                    <img src="../../../img/star36_on@2x.png" alt="">
                    <img src="../../../img/star36_on@2x.png" alt="">
                    <img src="../../../img/star36_off@2x.png" alt="">
                    <span style="color:rgb(255, 153, 0);margin-left:3.2vw ;"> {{ seller.serviceScore }}</span>
                   
                </p>
                <p>
                    送达时间 <span style="color:rgb(147, 153, 159);margin-left:3.2vw;">{{ seller.deliveryTime }}分钟</span>
                </p>
            </div>
        </div>
        <p style="background:#f3f5f7;border-bottom:0.133vw solid #ccc ;border-top:0.133vw solid #ccc;height: 2.667vw;"></p>
        <div class="inf1">
            <div>全部 <span></span></div>
            <div>满意 <span></span></div>
            <div>不满意 <span></span></div>
        </div>
    </div>
</template>

<script>
import { mapActions, mapState } from 'vuex';
export default {

    created() {
        this.getRating();
        this.getSeller();
    },
    computed: {
        ...mapState(['seller', 'ratings'])
    },
    methods: {
        ...mapActions(['getRating', 'getSeller'])
    }
}
</script>

<style scoped>
.rating {
    display: flex;
    width: 100vw;
    height: 100vh;
    /* background-color: red; */
    flex-direction: column;
    border-top: 0.133vw solid #ccc;
}

.rating .top {
    width: 100vw;
    height: 26.667vw;
    display: flex;
    justify-content: space-between;
    /* background-color: green; */
}

.rating .top .left {
    text-align: center;
    /* background-color: yellow; */
    margin: 2.133vw 6.4vw;

}

.rating .top .right {
    margin: 4vw 0vw;
    margin-right:10.667vw;
    border-left:0.133vw solid #ccc;
    padding-left:6.4vw

}

.rating .top .right>p {
    display: flex;
    font-size: 3.2vw;
    color: rgb(7, 17, 27);
}

.rating .top .right>p>img {
    width: 3.2vw;
    height: 3.2vw;
}

.rating .top .right>p>img:nth-child(1) {
    margin-left: 3.2vw;
}

.rating .top .left>p:nth-child(1) {
    color: rgb(255, 153, 0);
    font-size: 6.4vw;
    line-height: 7.467vw;

}

.rating .top .left>p:nth-child(2) {
    color: rgb(7, 17, 27);
    font-size: 3.2vw;
    line-height: 3.2vw;
    margin: 1.6vw 0vw 2.133vw 0vw;

}

.rating .top .left>p:nth-child(3) {
    color: gray;
    font-size: 2.667vw;
}

.rating .top .right>p:nth-child(2) {
    margin: 2.133vw 0vw;
}
</style>